from django.db import models


class Inscritos(models.Model):
    id = models.IntegerField(primary_key=True)
    
    nome = models.CharField(max_length=450, blank=True)
    
    bairro = models.CharField(max_length=450, blank=True)
    
    telefone = models.CharField(max_length=135, blank=True)
    
    paroquia = models.CharField(max_length=450, blank=True)
    
    email = models.CharField(max_length=450, blank=True)
    
    noEvento = models.BooleanField(null=False, default = False, verbose_name = 'No Evento')
    
    sexo_desc = (
                 (False, u'Feminino'),
                 (True, u'Masculino')
                 )
    
    sexo = models.BooleanField(choices=sexo_desc, default = None, verbose_name = 'Sexo')
    
    idade = models.IntegerField(default=None, verbose_name='Idade', blank=True)
    
    def __unicode__(self):
        return self.nome
    
    class Meta:
        db_table = u'inscritos'
        verbose_name_plural = 'Inscritos'